package com.his.bean;

import java.io.Serializable;

/**
 * 字典表
 * @TableName dzm_his_dictionary
 */
public class DzmHisDictionary implements Serializable {
    /**
     * 字典字段id
     */
    private Long did;

    /**
     * 字典名称
     */
    private String dictionaryName;

    /**
     * 父级id
     */
    private Integer parentId;

    /**
     * 医院id
     */
    private Integer hid;

    /**
     * 类型  0：系统  1：自建
     */
    private Byte type;

    /**
     * 添加时间
     */
    private Integer createTime;

    /**
     * 编辑时间
     */
    private Integer updateTime;

    /**
     * 诊断编号
     */
    private String number;

    /**
     * 是否删除
     */
    private Byte isDel;

    private static final long serialVersionUID = 1L;

    /**
     * 字典字段id
     */
    public Long getDid() {
        return did;
    }

    /**
     * 字典字段id
     */
    public void setDid(Long did) {
        this.did = did;
    }

    /**
     * 字典名称
     */
    public String getDictionaryName() {
        return dictionaryName;
    }

    /**
     * 字典名称
     */
    public void setDictionaryName(String dictionaryName) {
        this.dictionaryName = dictionaryName;
    }

    /**
     * 父级id
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * 父级id
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * 医院id
     */
    public Integer getHid() {
        return hid;
    }

    /**
     * 医院id
     */
    public void setHid(Integer hid) {
        this.hid = hid;
    }

    /**
     * 类型  0：系统  1：自建
     */
    public Byte getType() {
        return type;
    }

    /**
     * 类型  0：系统  1：自建
     */
    public void setType(Byte type) {
        this.type = type;
    }

    /**
     * 添加时间
     */
    public Integer getCreateTime() {
        return createTime;
    }

    /**
     * 添加时间
     */
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    /**
     * 编辑时间
     */
    public Integer getUpdateTime() {
        return updateTime;
    }

    /**
     * 编辑时间
     */
    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 诊断编号
     */
    public String getNumber() {
        return number;
    }

    /**
     * 诊断编号
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 是否删除
     */
    public Byte getIsDel() {
        return isDel;
    }

    /**
     * 是否删除
     */
    public void setIsDel(Byte isDel) {
        this.isDel = isDel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisDictionary other = (DzmHisDictionary) that;
        return (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
            && (this.getDictionaryName() == null ? other.getDictionaryName() == null : this.getDictionaryName().equals(other.getDictionaryName()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        result = prime * result + ((getDictionaryName() == null) ? 0 : getDictionaryName().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", did=").append(did);
        sb.append(", dictionaryName=").append(dictionaryName);
        sb.append(", parentId=").append(parentId);
        sb.append(", hid=").append(hid);
        sb.append(", type=").append(type);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", number=").append(number);
        sb.append(", isDel=").append(isDel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}